package chap04;

public class Feeder {
    private  String name;
    public Feeder(){


    }

    public Feeder(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void feed(Animal ani, Food food){
        System.out.println("大家好，我是饲养员"+this.name);
        ani.eat(food);
        ani.shout();

    }
}
